<%@page import="java.util.List"%>
<%@page import="com.libweb.model.dto.Member"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>

<!DOCTYPE html>

<html>
<head>
	<meta charset="utf-8" />
    <title></title>
    <link rel="Stylesheet" href="/libweb/styles/default.css" />
</head>
<body>

    <div id="pageContainer">
    	
    	<!--  
    	<jsp:include page="/WEB-INF/views/include/header.jsp" />
        -->
        <!--  
        <%@ include file="/WEB-INF/views/include/header.jsp" %>
        -->
        
        <% pageContext.include("/WEB-INF/views/include/header.jsp"); %>
        
        
        <div id="content">
        	<br /><br />
        	<div style='text-align:center'>
        		[&nbsp;<a href="registerform.action">회원 등록</a>&nbsp;]
        	</div>
        	<br /><br />        	
        	<table border="1" align="center" width="700px">
        		<tr style="height:30px;background-color:orange">
        			<td>아이디</td>
        			<td>이름</td>
        			<td>주소</td>
        			<td>전화번호</td>
        			<td>등록일자</td>
        		</tr>

				<% List<Member> members = (List<Member>)request.getAttribute("members"); %>
				<% for (Member member : members) { %>
        		<tr style="height:30px">
        			<td>
        				<a href='/libweb/member/view.action?memberid=<%= member.getMemberId() %>'>
        					<%= member.getMemberId() %>
        				</a>
        			</td>
        			<td><%= member.getName() %></td>
        			<td><%= member.getAddress() %></td>
        			<td><%= member.getPhoneNo() %></td>
        			<td><%= member.getRegDate() %></td>
        		</tr>
        		<% } %>
        	</table>        	
        </div>
    </div>
</body>
</html>









